import request from '@/utils/request'

// 查询记录金钱列表
export function listMoney(query) {
  return request({
    url: '/record/money/list',
    method: 'get',
    params: query
  })
}

// 查询记录金钱详细
export function getMoney(moneyId) {
  return request({
    url: '/record/money/' + moneyId,
    method: 'get'
  })
}

// 新增记录金钱
export function addMoney(data) {
  return request({
    url: '/record/money',
    method: 'post',
    data: data
  })
}

// 修改记录金钱
export function updateMoney(data) {
  return request({
    url: '/record/money',
    method: 'put',
    data: data
  })
}

// 删除记录金钱
export function delMoney(moneyId) {
  return request({
    url: '/record/money/' + moneyId,
    method: 'delete'
  })
}
